﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace server.app.table
{
    public abstract class Table
    {
        public abstract string CreateTableSql();
    }

    public class Table<T> : Table
    {
        public Orm<T> Orm { get; private set; }

        protected World _world = null;
        protected string _tableName = null;

        public Table(string tableName, World world)
        {
            _tableName = tableName;
            _world = world;

            Orm = new Orm<T>(_tableName, _world);
        }

        public override string CreateTableSql()
        {
            return Orm.CreateTableSql();
        }
    }
}
